package com.lagou.service;

import com.lagou.pojo.Goods;

import java.util.List;
import java.util.Map;

/**
 *
 */
public interface GoodsService {
    //通过id查询商品

    public Goods findGoodsById(Integer id);

    //通过id删除商品

    public int deleteGoodsById(Integer id);

    //通过id修改商品

    public int updateGoodsById(Goods goods);

    //分页查询

    public Map<List,Integer> selectGoodsByPage(Integer page, String name, String classify, Integer pricemin, Integer pricemax, Integer inventorymin, Integer inventorymax, String status);
}
